
import org.junit.After;
import org.junit.AfterClass;
import org.junit.Before;
import org.junit.BeforeClass;
import org.junit.Test;
import static org.junit.Assert.*;
import package_d_encule.*;

/**
 *
 * @author test
 */
public class testVoitureFaufau {
    
    public testVoitureFaufau() {
    }

    @BeforeClass
    public static void setUpClass() throws Exception {
    }

    @AfterClass
    public static void tearDownClass() throws Exception {
    }
    
    @Before
    public void setUp() {
    }
    
    @After
    public void tearDown() {
    }

    
    @Test
    public void testCollision() 
    {
        Car maVoiture = new Car(50, 800, 20, 0);
        maVoiture.avancer();
        maVoiture.avancer();
        assertEquals(800.0, maVoiture.getPositionX(), 0.0);
    }
}
